import Pawn

board = [[],[],[],[],[],[],[],[]]

def resetBoard():
	board[0] = [1,-1,1,-1,1,-1,1,-1]
	board[1] = [-1,1,-1,1,-1,1,-1,1]
	board[2] = [1,-1,1,-1,1,-1,1,-1]
	board[3] = [-1,0,-1,0,-1,0,-1,0]
	board[4] = [0,-1,0,-1,0,-1,0,-1]
	board[5] = [-1,3,-1,3,-1,3,-1,3]
	board[6] = [3,-1,3,-1,3,-1,3,-1]
	board[7] = [-1,3,-1,3,-1,3,-1,3]
		
def getCopyOfBoard(board):
	copyBoard = []
	for row in board:
		copyBoard.append(row[:])
	return copyBoard				
	
def drawBoard():
	print '\n   | a b c d e f g h |'
	print '   |-----------------|'
	num=0
	for raw in board:
		temp = str(num)+' | '
		for singleField in raw:
			if singleField == Pawn.ILLEGAL:
				temp+='  '
			else:
				temp+=str(singleField)+' '
		temp += '|'
		print ' %s' % temp
		num+=1
	print '   |-----------------|'